Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

295
Views
How to convert string to array without ""

I have a problem when converting the coordinates that should be in array format, but sends me as an response a array but with the data with "" I will attach some images to understand better, sorry for my English. Response expected response

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use JSON.parse() method to convert Json string to Javascript Array. Hope this code will help you.

const arr=[
  "[-19,-20]",
  "[-10,2]",
  "[-12,-20]",
  "[-1,22]",
  "[-19,-20]",
  "[-1,2]",
  "[-9,-2]",
  "[-10,2]",
]

const result=arr.map((item)=>JSON.parse(item))

console.log(result)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!